package top.yueyazhui.ask_for_leave.mapper;

import org.apache.ibatis.annotations.Mapper;
import top.yueyazhui.ask_for_leave.entity.Role;
import top.yueyazhui.ask_for_leave.entity.User;

import java.util.List;

@Mapper
public interface UserMapper {

    User loadUserByUsername(String username);

    List<Role> getRoleListByUserId(Integer userId);

    List<User> getApproveUserList(Integer currentUserId);

    String getUsernameById(Integer approveUserId);
}
